﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<section data-page="category_add" data-title="添加类别" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span>添加类别</dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Mark="System" Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="?Lang=<%=ContentLang%>" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">类别列表</a></li>
							<li class="ali-active"><a>添加类别</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>名称：</th>
								<td><input type="text" name="Name" size="40" maxlength="80" class="ali-input <%=ContentLang%>Font"></td>
							</tr>
							<tr>
								<th>父类：</th>
								<td>
									<select name="ParentID" data-class="<%=ContentLang%>Font" data-tree="true" data-root="" data-ali-widget="combo">
										<option data-item="" data-parent="" value="">未指定</option>
										<ali:Tree Object="Category">
											<ali:Record>
												<%If Convert.ToString(ID) == Request.QueryString["ParentID"]%>
													<option data-item="<%=InnerID%>" data-parent="<%=ParentInnerID%>" value="<%=ID%>" selected><%=Name%></option>
												<%Else%>
													<option data-item="<%=InnerID%>" data-parent="<%=ParentInnerID%>" value="<%=ID%>"><%=Name%></option>
												<%EndIf%>
												<%=ChildRecords%>
											</ali:Record>
										</ali:Tree>		
									</select>
								</td>
							</tr>
							<tr>
								<th>推荐：</th><td><input type="number" value="0"></td>
							</tr>
							<tr>
								<th>是否显示：</th>
								<td>
									<label><input type="radio" name="IsDisplay" checked value="true">是</label>
									<label><input type="radio" name="IsDisplay" value="false">否</label>
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">添 加</button><input type="hidden" name="PictureAllowedType" value="gif|jpg|jpeg|png|bmp|png"></div>
	</form>
</section>